{% extends "base.html" %}
{% load comments.comments %}

{% block content %}
{% for post in post_list%}
{% get_free_comment_count for journal.post post.id as comment_count %}

<div>
    <h2><a href="{{ post.get_absolute_url }}" title="">{{ post.title }}</a> {{ post.tags }} ({{ comment_count }} commentaires)</h2>
    <img src="/media/{{ post.image }}" alt="" />
    {{ post.summary_html }}
</div>
{% endfor %}
{% endblock %}